package com.wzcl.app.model.dto;

import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.Date;
import java.util.List;


@Data
public class OrdersDto extends BaseDto {

    @ApiModelProperty(value = "订单编号")
    private String no;

    @ApiModelProperty(value = "所属用户")
    private String userPhone;

    @ApiModelProperty(value = "支付状态")
    private Integer payState;

    @ApiModelProperty(value = "支付状态")
    private Integer pageSize;
    @ApiModelProperty(value = "支付状态")
    private Integer pageNumber;

    @ApiModelProperty(value = "订单状态")
    private Integer ordersState;

    @ApiModelProperty(value = "快递状态")
    private Integer deliveryState;

    @ApiModelProperty(value = "支付方式 支付宝0 微信1")
    private Integer payType;

    @ApiModelProperty(value = "配送信息")
    private Integer sendPathId;

    @ApiModelProperty(value = "商品Id,用于立即支付")
    private Integer commodityId;

    @ApiModelProperty(value = "用户真实Ip")
    private String ip;

    @ApiModelProperty(value = "规格")
    private String spec;

    @ApiModelProperty(value = "系统类型")
    private Integer sysType;

    @ApiModelProperty("订单创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("月账单查询时用的时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date date;

    @ApiModelProperty("月账单查询时用的时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date weekOrder;

    @NotEmpty(message = "无购物车ID信息")
    @ApiModelProperty(value = "购物车ID")
    private List<Integer> cartIdList;
}
